package com.sc.school.entity;

/**
 * @program: sc0702
 * @description:
 * @author: LAN
 * @create: 2024-09-11 14:40
 * @version: 1.0
 **/
public class ResponseResult<T> {
    private Integer code=200;//200 404 500
    private String message;//响应的信息 响应成功
    private T data;//存储响应给前台的数据

    public ResponseResult(int code, String message, T num) {
        this.code = code;
        this.message = message;
        this.data = num;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public ResponseResult(Integer code, String message) {
        this.code = code;
        this.message = message;

    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public ResponseResult() {
    }
}